package com.lihang.rabbit1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lihang.rabbit1.dto.req.SysUserPageReq;
import com.lihang.rabbit1.dto.res.SysUserPageRes;
import com.lihang.rabbit1.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 系统用户Mapper接口
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 分页查询
     *
     * @param page 分页参数
     * @param req  查询条件
     * @return 分页结果
     */
    Page<SysUserPageRes> pageList(Page<SysUserPageRes> page, @Param("req") SysUserPageReq req);
}